#include "StdAfx.h"
#include "Vector2Int.h"

Vector2Int Vector2Int::operator + (Vector2Int & vector)
{
	return Vector2Int(x + vector.x, y + vector.y);
}

Vector2Int Vector2Int::operator - (Vector2Int & vector)
{
	return Vector2Int(x - vector.x, y - vector.y);
}

Vector2Int & Vector2Int::operator = (const Vector2Int & vector)
{
	x = vector.x;
	y = vector.y;

	return *this;
}

Vector2Int & Vector2Int::operator += (Vector2Int & vector)
{
	x += vector.x;
	y += vector.y;

	return *this;
}